<template>
  <div>
    <h1>创新</h1>
    <!-- 去注册页面 -->
    <button @click="goRegister">go register</button>
    <!-- 去登陆页面 -->
    <button @click="goLogin">go login</button>

    <button @click="testGo">test go</button>
  </div>
</template>

<script>
export default {
  name: "",
  props: [""],
  data() {
    return {};
  },

  components: {},

  computed: {},

  beforeMount() {},

  mounted() {},

  methods: {
    goRegister() {
      console.log(this.$router);
      this.$router.push("/register");
    },
    goLogin() {
      this.$router.push("/login");
    },
    testGo() {
      this.$router.go(-1);
    },
  },

  watch: {},
};
</script>
<style lang='' scoped>
</style>